package com.stylefeng.guns.modular.system.model;

//import com.alibaba.dubbo.container.page.Page;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import org.terracotta.offheapstore.paging.Page;

import java.io.Serializable;

/**
 * Created by Andy on 16/11/15.
 *
 * 返回数据封装
 */

@TableName("dataResponse")
public class DataResponse extends Model<DataResponse> {


    //信息详情
    private String result_msg;

    //成功失败信息
    private String result_code;

    //公共通知编码
    private String result_num;

    private Page page;
    private Object data;

    public DataResponse(){}

    @Override
    protected Serializable pkVal() {
        return this.result_num;
    }

    public DataResponse(Object data){
        this.data = data;
    }

    public DataResponse(String result_code,String result_msg){
        this.result_code = result_code;
        this.result_msg  = result_msg;
    }

    public DataResponse(String result_code,String result_msg,String result_num){
        this.result_code = result_code;
        this.result_msg  = result_msg;
        this.result_num = result_num;
    }


    public String getResult_num() {
        return result_num;
    }

    public void setResult_num(String result_num) {
        this.result_num = result_num;
    }

    public String getResult_msg() {
        return result_msg;
    }

    public void setResult_msg(String result_msg) {
        this.result_msg = result_msg;
    }

    public String getResult_code() {
        return result_code;
    }

    public void setResult_code(String result_code) {
        this.result_code = result_code;
    }


    public Object getData() {
        return data;
    }

    public void setData(Object data) {

        this.data = data;
    }

    public Page getPage() {
        return page;
    }

    public void setPage(Page page) {
        this.page = page;
    }

}